import Vue from 'vue'
import Router from 'vue-router'
import Name from '@/pages/Name'

Vue.use(Router)

export default new Router({
	mode:'history',
  routes: [
    {
      path: '/',
      name: 'Name',
      component: Name
    },
    {
    	path:'/join',
    	component:resolve=>require(['@/pages/Step'],resolve)
    },
    {
    	path:'/selroom',
    	component:resolve=>require(['@/pages/JoinRoom'],resolve)
    },
    {
    	path:'/main',
    	component:resolve=>require(['@/pages/Main'],resolve)
    }
  ]
})
